<include file="Public:header" />
<include file="Public:leftside" />
<style type="text/css">
	.modal {
	    height: 600px;
	   
	}
	.modal-infp-style {
		width: 90%;
		margin: 10px auto;
	}
	
	.modal-infp-style table {
		width: 100%;
	}
	
	.modal-infp-style table tr td {
		border: 1px solid #e6e6e6;
		padding: 8px;
	}
	
	a:hover {
		cursor: pointer;
	}

	.pagination a{display: block;float: left;border-bottom-left-radius: 3px;border-top-left-radius: 3px;padding: 5px 10px;font-size: 12px;font-weight: 500;border-radius: 2px;}
	.pagination span{display: block;float: left;border-bottom-left-radius: 3px;border-top-left-radius: 3px;background-color: #fafafa;border: 1px solid #dddddd;padding: 5px 10px;font-size: 12px;font-weight: 500;border-radius: 2px;}

</style>
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i>
				<a href="/">首页</a>
			</li>
			<li class="active">城市合伙人管理</li>
		</ul>
	</div>
	<section class="scrollable wrapper">

		<!-- 操作提示  start -->
		<!-- 操作提示  end -->

		<div class="row padder-v">
			<div class="col-sm-9" style="width:65%;">
				<a href="{:U('Users/city_partner_edit')}" class="btn btn-sm btn-primary" onclick="add_user();"><i class="fa fa-plus"></i> 添加城市合伙人 </a>
			</div>


		</div>

		<section class="panel panel-default">
			<div class="table-responsive">
				<table class="table table-striped b-t b-light text-sm">
					<thead>
						<tr>

							<th>姓名</th>
							<th class="center">手机</th>
							<th class="center">级别</th>
							<th class="center">管理</th>
							<th class="center">状态</th>
							<th class="center">操作</th>
						</tr>
					</thead>
					<tbody id="list">
						<foreach name="users_list" item="v">
							<tr align="center">
								<td align="left">

									<span style="float: left;margin-left: 6px;line-height: 20px;">
										 {$v.username}

									</span>
								</td>
								<td>
									{$v.phone}
								</td>
								<td class="tal">
									<eq name="v['level']" value="1">省</eq>
									<eq name="v['level']" value="2">市</eq>
									<eq name="v['level']" value="3">区</eq>
								</td>
								<td class="tal">
									<php>
										$b_ids=explode(',',$v['b_id']);
										$ProvinceInfo='';
										$CityInfo='';
										$DistrictInfo='';

										if($b_ids[0]){
											$ProvinceInfo=getProvinceInfo($b_ids[0]);
										}
										if($b_ids[1]){
											$CityInfo=getCityInfo($b_ids[1]);
										}
										if($b_ids[2]){
											$DistrictInfo=getDistrictInfo($b_ids[2]);
										}
									</php>
									{$ProvinceInfo.province_name} {$CityInfo.city_name} {$DistrictInfo.district_name}
								</td>

								<td class="tal">
									<eq name="v['status']" value="1">启用</eq>
									<eq name="v['status']" value="0">禁用</eq>
								</td>

								<td>
									<a href="{:U('Users/city_partner_edit',array('id'=>$v['id']))}">修改</a>&nbsp;
								</td>
							</tr>
						</foreach>
					</tbody>
				</table>
			</div>

			<footer class="panel-footer">
				<div class="row" id="page">
				<div class="col-sm-2 text-center">
						<small class="text-muted inline m-tb-8">总计 <span id="total_count_num">{$count}</span>个记录</small>
					</div>
					<div class="col-sm-5 text-right text-center-xs">
						<ul class="pagination pagination-sm m-t-none m-b-none">
							{$page}
						</ul>
					</div>
				</div>
			</footer>

		</section>
</section>
</div>

<include file="Public:footer" />